package main

import (
	"gin-to-study/gin-to-study-GET/Myfunction"

	"github.com/gin-gonic/gin"
)

//func Hello(context *gin.Context) {
//	context.HTML(200, "demo02.html", nil)
//}

func main() {
	r := gin.Default()

	//r.LoadHTMLFiles("templates/sdad.html") //不建议要一个个导入太麻烦
	//r.LoadHTMLGlob("templates/*")
	r.LoadHTMLGlob("gin-to-study-GET/templates/**/*")
	r.Static("static", "gin-to-study-GET/static")
	//r.GET("/123", Hello)
	//r.GET("/demo/:id", Myfunction.Hello1)
	r.GET("/demo1", Myfunction.Hello1)
	r.GET("/demo", Myfunction.Hello2)
	r.GET("/demomap", Myfunction.Hello3)
	r.Run(":9999")
}
